<title>项目全流程管理系统</title>

<meta http-equiv="expires" content="0">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">

<meta name="renderer" content="webkit" />
<meta name="force-rendering" content="webkit" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />

<link rel="icon" type="image/png"  href="${ctx}/img/icon.png">

<link href="${ctx}/lib/layui/css/layui.css" rel="stylesheet" />
<link href="${ctx}/css/adminPage/base.css" rel="stylesheet" />
<link href="${ctx}/lib/ckeditor5-build-classic/ckeditor.css" rel="stylesheet">

<script src="${ctx}/lib/ckeditor5-build-classic/translations/zh-cn.js" type="text/javascript"></script>
<script src="${ctx}/lib/ckeditor5-build-classic/ckeditor.js" type="text/javascript"></script>
<script src="${ctx}/lib/layui/layui.all.js" type="text/javascript"></script>

<script>
	//根路径
	var ctx = '${ctx}/';

	// 翻页参数
	var page = {
			count : '${page.total!0}',
			curr : '${page.pageNum!1}',
			limit : '${page.pageSize!0}'
	};

	var changePageIndex;
	function changePage() {
		changePageIndex = layer.open({
			type: 1,
			shade: false,
			title: "修改密码",
			area: ['400px', '370px'], //宽高
			content: $('#changeDiv')
		});
	}

	function changePass() {
		if ($("#userPass").val() == "" || $("#newPass").val() == "" || $("#userName").val() == ""  || $("#repeatPass").val() == "") {
			layer.msg("未填写完整");
			return
		}
		
		if( $("#newPass").val() != $("#repeatPass").val()){
			layer.msg("重复密码不一致");
			return;
		}
		
		showLoad();
		$.ajax({
			type: 'POST',
			url: ctx + '/adminPage/login/changePass',
			data: $("#passForm").serialize(),
			dataType: 'json',
			success: function(data) {
				closeLoad();
				if (data.success) {
					layer.close(changePageIndex);
					layer.msg("修改成功");
				} else {
					layer.msg(data.msg);
				}
			},
			error: function() {
				closeLoad();
				alert("出错了,请联系技术人员!");
			}
		});
	}

</script>


<script src="${ctx}/js/adminPage/base.js" type="text/javascript"></script>